package agrep4me;

class Transition {
	char label;
	Transition next;

	Transition(char c, Transition next) {
		label = c;
		this.next = next;
	}

	public String toString() {
		StringBuffer r = new StringBuffer();
		for (Transition p = this; p != null; p = p.next)
			r.append("- " + p.label + " -> ");
		return r.toString();
	}
}
